forceLoadAVResource

abstract suspend fun forceLoadAVResource(block: DesignBlock)

Begins loading the required audio and video resource for the given video fill or audio block. If the resource had been loaded earlier and resulted in an error, it will be reloaded. A buffer:// source loads like a file. The call finishes once the engine can read the video, audio or Lottie in the buffer, with the images that a Lottie references. It fails when the buffer holds no file that it can read. A missing or empty buffer, or raw audio samples on an audio block, finish at once.

Cancelling the coroutine ends the wait. It stops the download, unless a block or another call needs the file. The engine reads every video fill at each update, so the download of a video fill goes on.

Parameters

block

the video fill or audio block whose resource should be loaded.